/**
 * related to list.cell.ui
 * 
 * @Author : weixy
 * @Timestamp : 2017-04-21
 */
var el=ui("$");
var telphone=ui("telphone");
var repayState=ui("repayState")
var log=require("util/log");
var page = sm("do_Page");
var repayState=ui("repayState")
var location=ui("location")
var navigate = require("util/navigate")
var router = require('config/router')
var repayState=ui("repayState")
el.setMapping({
	"userName.text" : "custName",
	"countdown.text" : "cupoCountdown",
	"casemoney.text":"cupoAmt",
	"overday.text":"cupoOverday",
	"status.text":"cupoPaystatus",
	"repayState.text":"cupoStatus",
	"telphone.tag":"id"	,
	"location.tag":"mapData",
	"repayState.fontColor":"staFont",
	"repayState.bgColor":"staBg",
	"stateBox.bgColor":"staBg",
	"stateBox.border":"boxBorder"
}) 
//点击拨打电话
	telphone.on("touch",function(index){
		page.fire("telDiallog",{id:telphone.tag})
	})
	
	location.on("touch",function(index){
		navigate.redirectTo({ 
			view : router.app.baiduMap,
			data:{
				geolocation:location.tag
			}
		})
	})

